Include package props with env vars into target metadata
authorAnton Larin <edding.default@gmail.com>
Thu, 23 Mar 2017 14:26:40 +0000 (17:26 +0300)
committerAnton Larin <edding.default@gmail.com>
Thu, 23 Mar 2017 19:55:08 +0000 (22:55 +0300)
commitd70ca2108f88b0deaf7a6793aba3554abccee770
tree22960b187b51ccc6e60920ad8ccfdfbb9a7cd7b4
parent3cac89416f61cf0f037bc5d11fded1593cb094de
Include package props with env vars into target metadata

Previously, when changing package properties with corresponding
environment variables (such as authors, which has CARGO_PKG_AUTHORS),
it didn't invalidate the build, even though there could have been
a dependency on such variables in the source code.

This commit includes such properties (there are 3 of them in total:
authors, description and homepage) in the target metadata.

Fixes #3696.
src/cargo/ops/cargo_rustc/compilation.rs
src/cargo/ops/cargo_rustc/context.rs
tests/freshness.rs